/*
 * @Author: suxunying
 * @desc: main
 * @Date: 2021-07-30 14:23:21
 * @LastEditors: suxunying
 * @LastEditTime: 2021-07-30 16:45:23
 * @FilePath: \aogo\src\main.ts
 */
import { createApp } from 'vue';
import Antd from 'ant-design-vue';
// import { app as elecApp, Menu } from 'electron';
import App from './App.vue';
import router from './router';
import store from './store';
import 'ant-design-vue/dist/antd.css';

const app = createApp(App);
// const {
//     app: elecApp,
//     Menu,
// } = require('electron');

// console.log('Electron', elecApp, Menu);

// const menuTemplate: Array<any> = [];

// elecApp.on('ready', () => {
//     const appMenu = Menu.buildFromTemplate(menuTemplate);
//     Menu.setApplicationMenu(appMenu);
// });

// app.config.productionTip = false;
app.use(Antd)
    .use(store)
    .use(router)
    .mount('#app');
